package command.remoteController.command.light;


import command.remoteController.command.base.Command;
import command.remoteController.receiver.LightReceiver;
import command.remoteController.receiver.base.Receiver;

public class LightOnCommand implements Command {

    private Receiver receiver;

    public LightOnCommand(Receiver receiver) {
        this.receiver = receiver;
    }


    @Override
    public void execute() {
        receiver.on();
    }

    @Override
    public void undo() {
        receiver.off();
    }
}
